package com.ruoyi.project.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.DeptSongMapper;
import com.ruoyi.project.domain.DeptSong;
import com.ruoyi.project.service.IDeptSongService;
import com.ruoyi.common.support.Convert;

/**
 * 门店曲目 服务层实现
 * 
 * @author ruoyi
 * @date 2018-11-01
 */
@Service
public class DeptSongServiceImpl implements IDeptSongService 
{
	@Autowired
	private DeptSongMapper deptSongMapper;

	/**
     * 查询门店曲目信息
     * 
     * @param deptId 门店曲目ID
     * @return 门店曲目信息
     */
    @Override
	public DeptSong selectDeptSongById(Long deptId)
	{
	    return deptSongMapper.selectDeptSongById(deptId);
	}
	
	/**
     * 查询门店曲目列表
     * 
     * @param deptSong 门店曲目信息
     * @return 门店曲目集合
     */
	@Override
	public List<DeptSong> selectDeptSongList(DeptSong deptSong)
	{
	    return deptSongMapper.selectDeptSongList(deptSong);
	}
	
    /**
     * 新增门店曲目
     * 
     * @param deptSong 门店曲目信息
     * @return 结果
     */
	@Override
	public int insertDeptSong(DeptSong deptSong)
	{
	    return deptSongMapper.insertDeptSong(deptSong);
	}
	
	/**
     * 修改门店曲目
     * 
     * @param deptSong 门店曲目信息
     * @return 结果
     */
	@Override
	public int updateDeptSong(DeptSong deptSong)
	{
	    return deptSongMapper.updateDeptSong(deptSong);
	}

	/**
     * 删除门店曲目对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteDeptSongByIds(String ids)
	{
		return deptSongMapper.deleteDeptSongByIds(Convert.toStrArray(ids));
	}
	
}
